home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 4 / developer source - volume 4.iso / unixr / jul94 / mull14.gif < prev   
Graphics Interchange Format  |  1995-09-26  |  211KB  |  490x768  |  8-bit (130 colors)
Labels: text | screenshot | font | number | parallel | line
OCR: The Effects Of Memory Allocation FIGURE 4 Segment Base Break Base Segment Limit data segment In use Break Point (heap) Assume heap = 20K (5 pages) A. Before allocating memory. Assume an initial segment size of 20K (5 pages). Segment Base Break Base Segment Limit data segment In use Break Point (heap) heap = 16K (4 pages Memory made available after call to brk() B. After a call to brki). Notice size of the heap has decreased to 16K (4 pages). Segment Base Break Base Segment Limit data segment In use Break Point (heap) Assume heap = 20K (5 pages) The size of the heap is increased by expanding the segment C. After a call to sbrk[]. One page was added, increasing heap to 20K (5 pages).